package net.hn.hnms.biz.api.safety.water.fegin;

import net.hn.hnms.biz.api.feign.model.DataStateVo;
import net.hn.hnms.biz.api.safety.monitor.model.BaseSensorCoordDto;
import net.hn.hnms.biz.api.safety.support.domain.MineNowAlarmVo;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

@Component
public class RemoteWaterServiceFallback  implements RemoteWaterService {
    @Override
    public List<MineNowAlarmVo> nowAlarm() {
        return new ArrayList<>();
    }

    @Override
    public R<List<DataStateVo>> getHolerealMaxTime(String mineCode, String companyCode) {
        return R.fail("获取长管孔最新时间错误！");
    }

    @Override
    public R<List<DataStateVo>> getPSLMaxTime(String mineCode, String companyCode) {
        return R.fail("获取排水量最新时间错误！");
    }

    @Override
    public R<List<DataStateVo>> getYSLMaxTime(String mineCode, String companyCode) {
        return R.fail("获取涌水量最新时间错误！");
    }

    @Override
    public List<BaseSensorCoordDto> getBaseSensorTableAllList(@RequestParam("mineCode") String mineCode, @RequestParam("companyCode")  String companyCode) {
        return new ArrayList<>();
    }

}
